//
//  DiscountMoreTextTableViewCell.m
//  AroundTheWorld
//
//  Created by dllo on 16/5/20.
//  Copyright © 2016年 IfelseGo an. All rights reserved.
//

#import "DiscountMoreTextTableViewCell.h"
#define WIDTH self.frame.size.width
#define HEIGHT self.frame.size.height

@implementation DiscountMoreTextTableViewCell

//自定义初始化
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self addView];
        
    }
    return self;
}

- (void)addView
{
    self.contentView.dk_backgroundColorPicker = DKColorPickerWithRGB(0xffffff,0xCFCFCF);
    self.myTextLabel = [[UILabel alloc] init];
    self.myTextLabel.text = @"查看专题 >";
    self.myTextLabel.textColor = [UIColor colorWithRed:69 / 255.0 green:181 / 255.0 blue:134 / 255.0 alpha:1.0];
    [self.contentView addSubview:self.myTextLabel];
    
}

//分布
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.myTextLabel.frame = CGRectMake(WIDTH / 2 - 80, 0, 160 , 30);
    self.myTextLabel.textAlignment = NSTextAlignmentCenter;
    
}

//- (void)setSubjectArray:(NSArray *)subjectArray
//{
//    _subjectArray = subjectArray;
//    
//}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
